package com.jhgsys.internal.peccancy.constant;

/**
 * @Author wanghw
 * @CreateTime 2024/8/13 11:00
 * @Description TODO
 * @Version 1.0
 */
public class PeccancyConstant {
    /** 事故编号当日起始序号000001*/
    public static final String PECCANCY_NO_START_NUM = "00001";


    /**
     * 违章信息状态
     */
    public class INFORMATION_STATUS{

        /**
         * 1：待提交
         */
        public static final String UPLOAD = "1";
        /**
         *2：待审核
         */
        public static final String WAITING_AUDIT = "2";
        /**
         *3：审核退回
         */
        public static final String AUDIT_FAIL = "3";
        /**
         *3：待签发
         */
        public static final String WAITING_ISSUANCE = "4";
        /**
         *4：签发退回
         */
        public static final String ISSUANCE_FAIL = "5";
        /**
         *5：已签发
         */
        public static final String ISSUANCED = "6";
        /**
         *10：作废
         */
        public static final String DELETE = "10";
    }

    /**
     * 违章信息申诉状态
     */
    public class APPEAL_STATUS {
        /**
         * 1：待审核
         */
        public static final String ISSUANCE = "1";
        /**
         * 2：申诉通过
         */
        public static final String APPEALED = "2";
        /**
         * 2：申诉驳回
         */
        public static final String APPEAL_FAIL = "4";
    }


    /**
     * 违章信息数据来源
     */
     public class DATA_SOURCE {
        /**
         * 1：企微
         */
        public static final String WECHAT = "1";
        /**
         * 2：PC
         */
        public static final String PC = "2";
    }

    /**
     * 审核业务
     */
    public class AUDIT_BUSINESS {
        /**
         * 1：违章审核
         */
        public static final String AUDIT = "1";
        /**
         * 2：签发审核
         */
        public static final String ISSUANCE = "2";
    }

    public class IS_OR_NO {
        /**
         * 1：是
         */
        public static final String IS = "1";
        /**
         * 2：否
         */
        public static final String NO = "0";
    }


    /**
     * 罚款支付方式
     */
    public class CHARGE_TYPE {
        /**
         * 1：线下支付
         */
        public static final String OFFLINE = "1";
        /**
         * 2：微信支付
         */
        public static final String WXPAY = "2";
    }


    /**
     * 适用范围
     */
    public class USE_SCOPE {
        /**
         * 1：本工
         */
        public static final String MAIN = "1";
        /**
         * 2：外包
         */
        public static final String OD = "2";
        /**
         * 2：外协
         */
        public static final String WX = "3";
        /**
         * 2：承包商
         */
        public static final String CONTRACTOR = "4";
        /**
         * 2：部门
         */
        public static final String DEPT = "5";
        /**
         * 3：全部
         */
        public static final String ALL = "10";
    }

    /**
     * 违章对象是否是人
     * @param peccancyObject 违章对象
     * @return
     */
    public static boolean isUser(String peccancyObject){
        if(USE_SCOPE.MAIN.equals(peccancyObject) || USE_SCOPE.OD.equals(peccancyObject) || USE_SCOPE.WX.equals(peccancyObject)){
            return true;
        }else {
            return false;
        }
    }


    /**
     * 配置类型
     */
    public class CONFIG_TYPE {
        /**
         * 1：手动
         */
        public static final String MANUAL = "1";
        /**
         * 2：自动
         */
        public static final String AUTO = "2";
    }




}
